home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / Pwd.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  1.0 KB  |  61 lines

  1. /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. #if __SC__ || __RCC__
  3. #pragma once
  4. #endif
  5.  
  6. #ifndef __PWD_H
  7. #define __PWD_H 1
  8.  
  9. #if __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13. #include <sys/types.h>
  14.  
  15. struct passwd
  16.         {
  17.     char    *pw_name;
  18.     char    *pw_passwd;
  19.     uid_t    pw_uid;
  20.     gid_t    pw_gid;
  21.     char    *pw_age;
  22.     char    *pw_comment;
  23.     char    *pw_gecos;
  24.     char    *pw_dir;
  25.     char    *pw_shell;
  26.         };
  27.  
  28. #if !defined(_POSIX_SOURCE) 
  29. struct comment
  30.         {
  31.     char    *c_dept;
  32.     char    *c_name;
  33.     char    *c_acct;
  34.     char    *c_bin;
  35.         };
  36. #endif /* !defined(_POSIX_SOURCE) */ 
  37.  
  38. #ifndef __STDC__
  39.  
  40. #if !defined(_POSIX_SOURCE) 
  41. struct passwd * __cdecl getpwent(void);
  42. void __cdecl setpwent(void);
  43. void __cdecl endpwent(void);
  44. #ifdef __FILE_DEFINED
  45. struct passwd *  __cdecl fgetpwent(FILE *);
  46. #else
  47. struct passwd *  __cdecl fgetpwent(void *);
  48. #endif
  49. #endif /* !defined(_POSIX_SOURCE) */ 
  50.  
  51. struct passwd * __cdecl getpwnam(const char *);
  52. struct passwd * __cdecl getpwuid(uid_t);
  53.  
  54. #endif /* __STDC__ */
  55.  
  56. #if __cplusplus
  57. }
  58. #endif
  59.  
  60. #endif
  61.